package com.ifdom.lamada.reference;

import com.google.common.collect.Maps;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Random;
import java.util.function.Function;

/**
 * 函数式调用，方法参考演示
 * 正常情况下我们直接使用 ReferenceUtil.DateFormat()就可以了。
 *
 * @author dell
 * @date 2022/09/22
 */
public class ReferenceLambdaDemo {
    public static void main(String[] args) {
//        ReferenceInterface gFunRealization = (x, y) -> x - y;
//        lambdaInterfaceByArgument(gFunRealization);
//
//        ReferenceInterface gFunRealization2 = Integer::sum;
//        lambdaInterfaceByArgument(gFunRealization2);


        char ch = genericRandomString();
        System.out.println(ch);

    }


    public static char genericRandomString(){
        Random random = new Random();
        ReferenceInterface r = random::nextInt;
        int range50To100 = r.nextInt(50) + 50;
        System.out.println(range50To100);
        return (char)range50To100;
    }

}


interface Func extends Function<String, String> {

}
